
<?php 

require_once "../gobal.php";

 global $DICT_COLOR_NAME,$DICT_ORDERTYPE_NAME,$DICT_SERVICE_NAME;

?>

<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>RunJS</title>
		
		<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js" type="text/javascript"></script>
	
		<!--
		<script type="text/javascript" src="http://hhland.github.io/cdn/loader.js"></script>
		<script type="text/javascript">
			//Loader.importScript("/jeayui.extend.tabs.js");
			Loader.importStyle("/jquery-easyui-1.4.4/themes/bootstrap/easyui.css");
			Loader.importStyle("/jquery-easyui-1.4.4/themes/icon.css");
			Loader.importScript("/jquery-easyui-1.4.4/jquery.easyui.min.js");
		</script>
		-->
		
		<link rel="stylesheet" href="../script/jquery-easyui-1.4.1/themes/bootstrap/easyui.css">
		<link rel="stylesheet" href="../script/jquery-easyui-1.4.1/themes/icon.css">
        <script type="text/javascript" src="../script/jquery-easyui-1.4.1/jquery.easyui.min.js" ></script>
        <script type="text/javascript" src="../script/datagrid-detailview.js" ></script>
        <script type="text/javascript" src="../script/datagrid-filter.js" ></script>
        
        <script type="text/javascript">
            
            var DICT_COLOR_NAME=<?php echo json_encode($DICT_COLOR_NAME); ?>;
            var DICT_ORDERTYPE_NAME=<?php echo json_encode($DICT_ORDERTYPE_NAME); ?>;
            var DICT_SERVICE_NAME=<?php echo json_encode($DICT_SERVICE_NAME); ?>;
            
            function onload_orderSums(){
                
                var f_total_price={
				  field:'total_price',
				  type:'numberbox',
				  options:{precision:1},
				  op:['equal','notequal','less','greater']
			   };
			   
			   var f_device_color={
			       
			       field:'device_color',
				type:'combobox',
				options:{
					data:[{value:'',text:'所有'},{value:'P',text:'粉红'},{value:'W',text:'白色'},{value:'G',text:'金色'},{value:'B',text:'黑色'}]
				}
			   }
                
                $("#grid_ordersums_3M,#grid_ordersums_all").datagrid('enableFilter',[f_total_price]);
            }
            
        </script>
        
	</head>
	<body class="easyui-layout">
	<!--
	<div data-options="region:'north',border:false" style="height:60px;">north region</div>
	<div data-options="region:'west',split:true,title:'West'" style="width:250px;padding:2px;">
		<ul id="tree-menu" class="easyui-tree">
		</ul></div>
	
	<div data-options="region:'south',border:false" style="height:50px;">south region</div>
     -->
	<div id="tab-center" data-options="region:'center'" class="easyui-tabs" >
		<div title="訂單管理-前3个月" data-options="fit:true,href:'center-ordersums.php?gridid=grid_ordersums_3M&mode=3M',onLoad:onload_orderSums">

         </div>
         
        <div title="訂單管理-所有" data-options="fit:true,href:'center-ordersums.php?gridid=grid_ordersums_all&mode=all',onLoad:onload_orderSums">

         </div> 

        <div title="用户管理" data-options="fit:true,closable:false,href:'center-customerdetails.php'" >

       </div>
		<!--
    <div title="Tab3" data-options="iconCls:'icon-reload',closable:true" style="">
        tab3
    </div>
-->
		</div>
</html>